import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
	@PrimaryGeneratedColumn('uuid')
	id: string;

	@Column('text')
	user_code: string;

	@Column('text')
	user_name: string;

	@Column({ type: 'text', default: null })
	avatar: string;

	@Column('text')
	password: string;

	@Column({
		type: 'text', default: null, comment: 'maintainer贡献者,developer开发者,guest客人'
	})
	role: string;

}